package com.ontheroad.activity.service;

import cn.modoumama.service.base.BaseService;
import com.ontheroad.activity.model.ActivityModel;
import com.ontheroad.activity.model.ActivityTypeModel;
import com.ontheroad.api.response.ActivtiyListResponse;
import com.ontheroad.api.response.JoinApplyResponse;
import org.springframework.remoting.service.annotation.RemoteService;

import java.util.List;
import java.util.Map;

/**
 * Created by kedong on 2017/9/23 0023.
 */
@RemoteService
public interface ActivitService extends BaseService<ActivityModel, Integer> {

    List<ActivtiyListResponse> convertActivityList(List<ActivityModel> list);

    List<Integer> getActivityIdsByType(Integer type);

    List<ActivityTypeModel> getTypeListByCondition(Map<String,Object> condition);

    List<Integer> getActivityIdsByFreindJoin(Integer userId);

    void saveActTypes(List<Integer> actTypes, Integer id);

    Integer getActivityState(ActivityModel activityModel);

    List<JoinApplyResponse> getJoinApplyList(Integer userId, Integer pageNum, Integer pageSize);

}
